#!/usr/bin/python3
"""
施工价钱计算
"""
from math import pi


class SwimmingPool:
    """泳池类"""

    def __init__(self, radius):
        self.radius = radius
        self.area = pi * radius ** 2


class Passage(SwimmingPool):
    """过道"""

    def __init__(self, radius):
        super().__init__(radius)
        self.passage_radius = self.radius + 3
        self.passage_area = pi * self.passage_radius ** 2 - self.area
        self.passage_long = pi * self.passage_radius * 2

    def cost(self):
        """造价"""
        passage_cost = self.passage_area * 35.5 + self.passage_long * 28.5
        return passage_cost

def main():
    """主函数"""
    passage = Passage(int(input('请输入泳池半径:')))
    print(f'造价为:{int(passage.cost())}元')

if __name__ == '__main__':
    main()
